package demo;

import java.util.ArrayList;
import java.util.Random;
import java.util.stream.Collectors;

//Day 08
public class Day18004 {
    public static void main(String[] args) {
        Random random=new Random();
        ArrayList<Integer> arr=new ArrayList<>();
        for(int i=0;i<10;i++){
            arr.add((random.nextInt(11)+10));
        }
        System.out.println(arr);
//        过滤输出大于15的元素
        System.out.println(arr.stream().filter(t->t>15).collect(Collectors.toList()));
    }
}
